package com.example.springfeature.bean;

import com.example.springfeature.jsr303.DictValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel("dicReq")
public class TestDicReq extends BaseParam {


    //指定该参数的值必须是 字典类型=aaa的字典值
    @DictValue(dictType = "aaa", groups = {select.class})
    @ApiModelProperty(value = "aaa的字典值", example = "one", required = true)
    @NotBlank(message = "dicVal不能为空", groups = {select.class})
    private String dicVal;




    @NotBlank(message = "keyLock不能为空，请检查keyLock参数", groups = {add.class})
    @ApiModelProperty(value = "keyLock", example = "lock")
    private String keyLock;



}
